﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using LightWeb.TransferModel;
using System.ServiceModel.Web;

namespace LightWeb.Blog.DataService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IArticalService" in both code and config file together.
    [ServiceContract(ConfigurationName="ArticalServiceContract")]
    public interface IArticalService
    {
        [OperationContract]
        [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
        TmResult NewComment(TmArticalComment comment);
    }
}
